﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace MainApp
{
    public partial class FrmProgess : DevExpress.XtraEditors.XtraForm
    {
        public FrmProgess()
        {
            InitializeComponent();
        }

        public string Title { get { return this.Text; } set { this.Text = value; Application.DoEvents(); } }

        public string Info { get { return txtInfo.Text; } set { txtInfo.Text = value; Application.DoEvents(); } }

        public int ProgressMin { get { return progressBar.Minimum; } set { progressBar.Minimum = value; Application.DoEvents(); } }

        public int ProgressMax { get { return progressBar.Maximum; } set { progressBar.Maximum = value; Application.DoEvents(); } }

        public int ProgressCurrent { get { return progressBar.Value; } set { progressBar.Value = value; Application.DoEvents(); } }

        private void FrmProgess_FormClosing(object sender, FormClosingEventArgs e)
        {
            if (e.CloseReason == CloseReason.UserClosing)
            {
                //e.Cancel = true;
            }

        }
    }
}
